#ifndef __RADIUSNODE_H__
#define __RADIUSNODE_H__

#include "cocos2d.h"  
#include "..\cocos2d\extensions\cocos-ext.h"
#include "cocos\ui\CocosGUI.h"
#include "PuzzleGuess.h" 


NS_GAME_BEGIN 
	 

class RadiusNode : public cocos2d::Node
{
protected:  
	RadiusNode();
	~RadiusNode();
	
	unsigned int radiusA;
	unsigned int radiusB;
	unsigned int segmentCount;
	unsigned int segmentIndex;
	
	cocos2d::Color4F radiusStencilFillColor;
	cocos2d::DrawNode *radiusStencilNode;

	void drawRadius();
public:  
	void setRadiusStencilFillColor(cocos2d::Color4F _radiusStencilFillColor);
	void setRadius(unsigned int _radius);
	void setRadius(unsigned int _radiusA,unsigned int _radiusB);
	void setRadiusA(unsigned int _radiusA); 
	void setRadiusB(unsigned int _radiusB);  
	virtual void setContentSize(const cocos2d::Size& contentSize) override;
	virtual bool init();    
	// implement the "static create()" method manually
	CREATE_FUNC(RadiusNode);    
}; 
 

NS_GAME_END

#endif	//__RADIUSNODE_H__